package com.atguigu.spring5.config;

import com.atguigu.spring5.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author : wenchao.long
 * @date : Created in 2020/10/29 8:21 周四
 * @description :
 */
@Configuration
@ComponentScan(basePackages = "com.atguigu.spring5.*")
public class UserConfig {

    @Bean
    public User getUser() {
        return new User();
    }
}
